package spring6_learn.transcation;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class Student {
    public void save(){
        System.out.println("保存学生信息");
    }
    public void update(){
        System.out.println("更新学生信息");
    }
    public void delete(){
        System.out.println("删除学生信息");
    }
    public void find(){
        System.out.println("查询学生信息");
        throw new RuntimeException();
    }
}
